<template>
    
  <div class="common-layout" >
    <el-container >
      <el-aside width="200px">
        <img alt="Vue logo" src="./assets/aaa.png"> 
        <el-row class="tac">
    <el-col  >
      <el-menu
        default-active="2"
        class="el-menu-vertical-demo"
        @open="handleOpen"
        @close="handleClose"
      >
        <el-sub-menu index="1"  >
          <template #title>
             
            <el-icon><Menu /></el-icon>
            <span>常规设置</span>
          </template>

          <el-menu-item-group   >
            <el-menu-item index="1-1"> <router-link to="/">教师管理</router-link></el-menu-item>
            <el-menu-item index="1-2">  <router-link to="/a2">学生管理</router-link></el-menu-item>
            <el-menu-item index="1-3">  <router-link to="/a3">公告管理</router-link></el-menu-item>
            <el-menu-item index="1-4"> <router-link to="/a4">系统配置</router-link></el-menu-item>
             <el-menu-item index="1-5"> <router-link to="/a5">判断服务器</router-link></el-menu-item>
          </el-menu-item-group>
        </el-sub-menu>
         
          <el-sub-menu index="2">
          <template #title>
            <el-icon><Aim /></el-icon>
            <span>问题</span>
          </template>

          <el-menu-item-group  >
            <el-menu-item index="2-1"> <router-link to="/a6">问题列表</router-link></el-menu-item>
            <el-menu-item index="2-2"> <router-link to="/a7">增加项目</router-link></el-menu-item>
            <el-menu-item index="2-3"> <router-link to="/a8">导入导出项目</router-link></el-menu-item>
             
          </el-menu-item-group>
        </el-sub-menu>
          
          <el-sub-menu index="3">
          <template #title>
            <el-icon><Trophy /></el-icon>
            <span>比赛&练习</span>
          </template>

          <el-menu-item-group  >
            <el-menu-item index="3-1"> <router-link to="/a9">比赛列表</router-link></el-menu-item>
            <el-menu-item index="23-2"> <router-link to="/a10">创建比赛</router-link></el-menu-item>
             
             
          </el-menu-item-group>
        </el-sub-menu>
        
          <el-sub-menu index="4">
          <template #title>
            <el-icon><Collection /></el-icon>
            <span>课程</span>
          </template>

          <el-menu-item-group  >
            <el-menu-item index="3-1"> <router-link to="/a11">课程列表</router-link></el-menu-item>
            <el-menu-item index="23-2"> <router-link to="/a12">创建课程</router-link></el-menu-item>
             
             
          </el-menu-item-group>
        </el-sub-menu>
      </el-menu>
    </el-col>
    
  </el-row>
      </el-aside>
      <el-container>
        <el-header><VueHead/></el-header>
        <el-main><router-view></router-view></el-main>
        <el-footer> <VueFooter/></el-footer>
      </el-container>
    </el-container>
  </div>
 
  
  
     
</template>

<script>
import {Menu,Aim,Trophy,Collection} from '@element-plus/icons-vue'
// import FirstVue from './components/FirstVue.vue'
import VueHead from './components/VueHead.vue'
import VueFooter from './components/VueFooter.vue'
export default {
  name: 'App',
  components: {
      Menu,
      Aim,
      Trophy,
      Collection,
      VueHead,
      VueFooter
     
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
 
 .el-header{
   background-color: #F9FAFC;
    color: #333;
    text-align: center;
    line-height: 60px;
 }
    .el-footer {
    background-color: #EDECEC;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  
  .el-aside {
    background-color:  white;
    color: #333;
    text-align: center;
    line-height: 200px;
  }
  
  .el-main {
    background-color: #EDECEC;
    color: #333;
    text-align: center;
    line-height: 160px;
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
 
</style>
